
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
 	/*echo "<pre>";
    print_r($_POST);
    echo"</pre>";
	exit();*/
	require_once ("../mysql.php");
    require_once ("function_quantri.php");
    
	
     $TenLoai = $_POST['TenLoai'];
     $idCL  = $_POST['chungloai'];
     $ThuTu = $_POST['ThuTu'];
     $idLoai = $_POST['idLoai'];
  
       $result = loai_update($idLoai,$idCL,$TenLoai,$ThuTu);
       
		if($result)
		{
			echo "Update thành công";
			header("location:Sanpham_loai_quantri.php");
		}
		else
		{
			echo "Update thất bại";
		}
    
?>